package com.idconfirmsystem;

import com.base.utils.http.HttpProperties;
import com.idconfirmsystem.model.BranchTask;
import com.idconfirmsystem.model.Task;
import com.idconfirmsystem.model.UserBean;

public class Conf {
	public final static String SINA_APP_KEY = "857160079";// 857160079
	public final static String VERSION_CODE = "https://coding.net/u/youzi/p/CodingServer/git/raw/master/zhidu/versioncode.json";
	public final static String WEIBO_URL = "https://api.weibo.com/oauth2/default.html";
	public final static String DOWNLOAD_APK = "https://coding.net/u/youzi/p/CodingServer/git/raw/master/zhidu/Zhidu.apk";
	public final static String APP_IMG = "https://coding.net/u/youzi/p/CodingServer/git/raw/master/apkfolder/";

	public static class LoginConf {
		public static Integer ACCOUNT_TYPE = 1;
		public static String ACCOUNT_TYPE_NAME = " ";
	}

	public static class TaskConf {
		public static String TaskType;
		public static String KHUserType;

	}

	/**
	 * 获取webservice的配置路径 http://103.27.4.51:8080/syws/services/
	 * 
	 * @author Administrator
	 * 
	 */
	public static class ServiceConf {
		public static String getServiceUrl() {
			String url = HttpProperties.getProperty("url_protocol") + "://"
					+ HttpProperties.getProperty("url_ip") + "/"
					+ HttpProperties.getProperty("url_app_name");
			return url;
		}
	}

	/**
	 * 条形码获取，临时存储
	 * 
	 * @author Administrator
	 * 
	 */
	public static class Zcode {
		public static String curZcode;
	}
	
	public static class ResultCode{
		public static int BAG_NUM_SCAN=20001;//扫描箱包号
		public static int BAG_SEAL_SCAN=20002;//扫描铅封号
		
		public static int SEND_MSG_BACK=30001;//发送消息
	}
	/**
	 * 任务处理流程，中间数据
	 *
	 */
	public static class TaskProcess{
		public static Task curTask;//当前任务
		public static BranchTask curBranchTask;//当前子任务
	}
}
